<?php

class Restaurantxfoto extends MY_Model {
 
    function Restaurantxfoto()
    {
        // Call the Model constructor
        parent::MY_Model();

	$this->nombreTabla = "restaurantxfoto";
	$this->idT1= "idRestaurantxFoto";

	//$this->nombreCampo="nombre";

		$this->campos[] = array("realname" => "idResto",
					"clase" => "opciones",
					"label" => "Restaurant",
					"modelo" => "restaurant",
					"rules" => "required|integer");

		$this->campos[] = array("realname" => "direccion",
					"clase" => "file",
					"label" => "Foto",
					"types" => "gif|jpg|png|bmp|jpeg",
					"rules" => "");


    }
     
}


?>
